import { createApp } from 'vue'
import App from './App.vue'
// 应用全局，全局配置
import './style.css'
// 引入pinia
import { createPinia } from "pinia";
import { mainData } from '@/stores/index';
import piniaPluginPersistedstate from "pinia-plugin-persistedstate"

// 引入vue-router
import Router from "@/router"
// 引入naive ui
import naive from "naive-ui";

// 引入naive ui的字体
// 通用字体
import "vfonts/Lato.css";
// 等宽字体
import "vfonts/FiraCode.css";

let pinia = createPinia()
pinia.use(piniaPluginPersistedstate)

createApp(App)
.use(pinia)
  .use(Router)
  .use(naive)
  .mount('#app')
